package com.boge.modules.music.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.boge.common.utils.PageUtils;
import com.boge.common.utils.Query;

import com.boge.modules.music.dao.MusictypeDao;
import com.boge.modules.music.entity.MusictypeEntity;
import com.boge.modules.music.service.MusictypeService;


@Service("musictypeService")
public class MusictypeServiceImpl extends ServiceImpl<MusictypeDao, MusictypeEntity> implements MusictypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MusictypeEntity> page = this.page(
                new Query<MusictypeEntity>().getPage(params),
                new QueryWrapper<MusictypeEntity>()
        );

        return new PageUtils(page);
    }

}